package com.mall.seckill_mall.service;

import com.mall.seckill_mall.common.SeckillStatus;
import com.mall.seckill_mall.entity.Goods;
import com.mall.seckill_mall.entity.Order;
import com.mall.seckill_mall.enums.SeckillCode;

import java.awt.image.BufferedImage;

public interface SeckillService {
    String generatePath(String userToken, String goodsId);
    boolean validatePath(String userToken, String goodsId, String path);
    void doSeckill(String userToken, String goodsId);
    void seckill(String userId, Goods goods);
    SeckillCode getSeckillResult(String userToken, String goodsId);
    void closeSeckill(String orderId);
    void payForSeckill(String orderId, String userToken);
    BufferedImage createVerifyCode(String goodsId, String userToken);
    boolean checkVerify(String goodsId, String userToken, int code);
}
